{% extends 'base_after_login.html' %}

{% block main %}

<div class="container">
  <div class="card mb-3">
    <div class="card-body">
      <form method="POST" enctype="multipart/form-data">
        {{ form.hidden_tag() }}
        <div class="form-group">
          <label for="exampleInput">帖子内容</label>
          {{ form.text(class="form-control", id="exampleInput", placeholder="请输入内容", style="height: 50vh;") }}
        </div>
        <div class="form-group">
          <label for="imgUpload">选择文件</label>
          {{ form.img(class="form-control-file", id="imgUpload") }}
        </div>
          {{ form.sort(class="form-control") }}
        <div class="form-group">
          {{ form.submit(class="btn btn-primary") }}
        </div>

      </form>
    </div>
  </div>
</div>

{% endblock %}